import request from '@/utils/request'

export function uploadVideo(data) {
  return request({
    url: '/upload/video',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

export function processVideo(params) {
  return request({
    url: '/upload/process',
    method: 'get',
    params
  })
}

export function getProcessResult(taskId) {
  return request({
    url: `/upload/result/${taskId}`,
    method: 'get'
  })
}